#ifndef MYEDIT_H
#define MYEDIT_H

#include <QLineEdit>
#include <QKeyEvent>
class Myedit:public QLineEdit
{
    Q_OBJECT
public:
    explicit Myedit(QWidget * parent = nullptr):QLineEdit(parent){}
protected:
    void keyPressEvent(QKeyEvent *) override;
    virtual bool event(QEvent *e)override;
};

#endif // MYEDIT_H
